body {
  font-size: 16px;
}

* {
  transition: background-color .2s ease-in-out, margin .2s ease-in-out, opacity .2s ease-in-out, filter .2s ease-in-out, visibility .2s ease-in-out, transform .2s ease-in-out, border-color .2s ease-in-out;
}
.knowledgeHome {
  width: 100%;
  height: 100%;
}

@media (min-width: 1200px) and (max-width:1920px) {
  .container {
    width: 1140px;
  }
}

@media (min-width: 992px) and (max-width:1199px) {
  .container {
    width: 970px;
  }
}

@media (min-width: 768px) and (max-width:919px) {
  .container {
    width: 768px;
  }
}

@media (max-width:780px) {
  .container {
    >.containerRighr {
      display: none;
    }
  }

}

.container {
  padding-top: 16px;
  margin: 0 auto;
  display: flex;
  background:  var(--bg-body);
  flex-direction: row;
  >.containerLeft {
    flex: 1;
    margin-right: 20px;
    div:hover>div:nth-child(2){
     >p:nth-child(1){
       color: red;
     }

    }

    >div {
      position: relative;
      width: 100%;
      padding: 0;
      border-radius: 5px;
      margin-right: 14px;
      margin-bottom: 1rem;
      border-radius: 5px;
      overflow: hidden;
      background:  var(--bg-second);
      transition: transform .3s;
      display: flex;
      flex-wrap: nowrap;
      padding: 1rem;

      >div:nth-child(1) {
        flex: 0 0 auto;
        width: 40%;
        border-radius: 5px;
        margin-right: 1rem;
        overflow: hidden;

        >img {
          width: 100%;
          height: 100%;
          border-top-right-radius: var(--border-radius);
          border-top-left-radius: var(--border-radius);
          object-fit: cover;
        }
      }
      >div:nth-child(2) {
        display: flex;
        flex: 1;
        flex-direction: column;
        justify-content: space-between;
        padding: 1rem 0;
        overflow: hidden;

        >p:nth-child(1) {
          color: var(--main-text-color);
          overflow: hidden;
          font-weight: 600;
          font-size: 16px;
          line-height: 22px;
          text-overflow: ellipsis;
          white-space: nowrap;
        }

        >p:nth-child(2) {
          display: -webkit-box;
          max-width: 100%;
          margin-top: .5rem;
          color: var(--second-text-color);
          overflow: hidden;
          font-size: 14px;
          text-overflow: ellipsis;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
        }

        >div:nth-child(3) {
          width: 100%;
          padding-top: .5rem;
          color: #8590a6;
          font-size: 14px;
          line-height: 20px;
        }

      }
    }

  }

  >.containerRighr {
    width: 320px;
    height: 505px;
    background: red;
  }
}
